package cn.baiweigang.uu.service.futureswap;

import cn.baiweigang.uu.api.future.AccountFutureApi;
import cn.baiweigang.uu.api.swap.AccountSwapApi;
import cn.baiweigang.uu.model.AccountInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountService {

    @Autowired
    private AccountFutureApi accountFutureApi;
    @Autowired
    private AccountSwapApi accountSwapApi;

    public void updateFutureAccountInfo(AccountInfo accountInfo) {
        accountFutureApi.updateAccountInfo(accountInfo);
    }

    public void updateSwapAccountInfo(AccountInfo accountInfo) {
        accountSwapApi.updateAccountInfo(accountInfo);
    }

    public void updateFuturePositionInfo(AccountInfo accountInfo) {
        accountFutureApi.updatePositionInfo(accountInfo);
    }

    public void updateSwapPositionInfo(AccountInfo accountInfo) {
        accountSwapApi.updatePositionInfo(accountInfo);
    }
}
